import React, { Component } from 'react'

export default class index extends Component {
    constructor() {
        super()
        this.state = {
            text: 'React'
        }
    }
    componentDidMount() {
        setTimeout(() => {
            this.setState({
                ...this.state,
                text: 'Vue'
            })
        }, 1000);
    }
    render() {
        return (
            <div>
                {this.state.text}
            </div>
        )
    }
}
